var express = require('express');
var router = express.Router();
var ordersController=require('../controllers/ordersControllers')

//获取数据
router.get('/orders', ordersController.getOrders)

//添加数据
router.post('/orders', ordersController.addOrders)

//修改数据
router.put('/orders', ordersController.updateOrders)

//删除数据
router.delete('/orders', ordersController.deleteOrders)


module.exports = router;
